interface girlfriend extends aa{

   readonly id:number
   can:()=>void
}
// let person:girlfriend ={
//     name:"刘亦菲",
//     age:18,
//     id:5,
//     can:()=>{    
// console.log("吃饭");

//     }
    
// }
// console.log(person);
interface work extends aa{
  
    work:()=>void
}
interface aa{
    name:string
    age:number
}


class Person implements girlfriend,work{
    name:string
    age: number
    id: number
    constructor(name:string,age:number,id:number){
        this.name=name
        this.age=age
        this.id=id

    }
    can = ()=>{
        console.log("睡觉");
        
    }
    work=() => {
        console.log("敲代码");
        
    }
}
let  p = new Person("迪丽热巴",22,2)
console.log(p);



export{}